use core::ops::Deref;
use stm32f1::stm32f103::{adc1, adc2, adc3};



pub struct ADC1;
pub struct ADC2;
pub struct ADC3;

impl Deref for ADC1 {
    type Target = adc1::RegisterBlock;
    fn deref(&self) -> &Self::Target {
        unsafe { &*stm32f1::stm32f103::ADC1::PTR }
    }
}

impl Deref for ADC2 {
    type Target = adc2::RegisterBlock;
    fn deref(&self) -> &Self::Target {
        unsafe { &*stm32f1::stm32f103::ADC2::PTR }
    }
}

impl Deref for ADC3 {
    type Target = adc3::RegisterBlock;
    fn deref(&self) -> &Self::Target {
        unsafe { &*stm32f1::stm32f103::ADC3::PTR }
    }
}

